#include <string>
#include <vector>
#include <sstream>
using namespace std;

#ifndef RECORD_H_
#define RECORD_H_

class Record {

private:
	string key;
	vector<int>* data;
    int getOffsetsNumber(int length, int *keyLength);
public:
	Record(int length, char* dataRecord);
	Record(string key, int offset);
	virtual ~Record();
    vector<int> *getData() const;
    string getKey() const;
    void setData(vector<int> *data);
    void setKey(string key);
	char* BuildRecordStream();
	void buildRecord(char * recordStream);
    int getBytes();
    unsigned int getBufferSize();
    void insertOffset(int offset);
    int searchOffset(int offset);
};

#endif /* RECORD_H_ */
